<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
include_once("../config.inc.php");

$_LangPath = "memcreditdata";	//語言檔參數，務必放在最前面
include_once(__Member_Path."/logincheck.php");
include_once(__Language_Path."/selectlanguage_member.php");
include_once(__Modules_Path."/Member.lib.php");

$err = false;
$arrD["SkypeAcc"] = trim($_data["SkypeAcc"]);
$arrD["Email"] = trim($_data["Email"]);
$arrD["MSN"] = trim($_data["MSN"]);
$arrD["QQNum"] = trim($_data["QQNum"]);
$arrD["MPhone"] = trim($_data["Area"])."-".trim($_data["MPhone"]);

//更改使用者資料
if(!setUserData($_SESSION["Member_Info"] -> ID, $_SESSION["Member_Info"] -> ID, "1", $arrD))ErrMsgOutputHTML("Error", "", 1);

$_SESSION["Member_Info"] -> SkypeAcc = $arrD["SkypeAcc"];
$_SESSION["Member_Info"] -> Email = $arrD["Email"];
$_SESSION["Member_Info"] -> MPhone = $arrD["MPhone"];
$_SESSION["Member_Info"] -> MSN = $arrD["MSN"];
$_SESSION["Member_Info"] -> QQNum = $arrD["QQNum"];

$GLOBALS["errormessage"] = $_strMemCreditData["CommSuccess"];
ErrMsgOutputHTML("Success", "", 1);
?>